<template>
	<view>
		<image :src="baseUrl+'/api' + ITEM.img" mode="widthFix" style="width: 100%;"></image>
	</view>
</template>

<script>
import { SampleObtained } from '../../API/api';
import env from '@/utils/env.js'
	export default {
		data() {
			return {
				ITEM:{},
				baseUrl:env.baseUrl
			};
		},
		onLoad() {
			this.getImage()
		},
		methods:{
			getImage(){
				uni.showLoading({
					title:'加载中...'
				})
				SampleObtained().then(res=>{
					this.ITEM = res.data[0]
					uni.hideLoading()
				}).catch(err=>{})
			}
		}
	}
</script>

<style lang="scss">

</style>
